package main.java.Fzy.designMode.single;

/**
* @author LazyCat
* @date  2022/10/3
* @param
* @return
 * 饿汉式
*/
public class Single2 {

//    public static Single2 single2  = new Single2();
//
//    private Single2(){}
//
//    public static Single2 getInstance(){
//        return single2;
//    }

    private static Single2 single2 = new Single2();

    private Single2(){

    }

    public static Single2 getInstance(){
        return single2;
    }
}
